package com.qujia.station.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class StorageRecordsQueryDto {

    private Integer pageNum;
    private Integer pageSize;

    @ApiModelProperty(value = "油企id")
    private Long enterpriseId;

    @ApiModelProperty(value = "油站id")
    private Long stationId;

    @ApiModelProperty(value = "调出油站id")
    private Long outboundStationId;

    @ApiModelProperty(value = "单据编号")
    private String recordsCode;

    @ApiModelProperty(value = "是否入库，0：待入库，1：已入库，2：入库失败")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间（开始）")
    private Date createStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间（结束）")
    private Date createEndTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "入库时间（开始）")
    private Date outboundRepositoryStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "入库时间（结束）")
    private Date outboundRepositoryEndTime;
}
